package com.ktjy.ruoyibooks.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书信息对象 t_bookinformation
 * 
 * @author ruoyi
 * @date 2025-04-23
 */
public class TBookinformation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long bid;

    /** 图书名称 */
    @Excel(name = "图书名称")
    private String bName;

    /** 图书作者 */
    @Excel(name = "图书作者")
    private String author;

    /** 出版社 */
    @Excel(name = "出版社")
    private String pubComp;

    /** 出版日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出版日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pubDate;

    /** 图书总数 */
    @Excel(name = "图书总数")
    private Integer bCount;

    /** 图书价格 */
    @Excel(name = "图书价格")
    private Long price;

    public void setBid(Long bid) 
    {
        this.bid = bid;
    }

    public Long getBid() 
    {
        return bid;
    }

    public void setbName(String bName) 
    {
        this.bName = bName;
    }

    public String getbName() 
    {
        return bName;
    }

    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    public void setPubComp(String pubComp) 
    {
        this.pubComp = pubComp;
    }

    public String getPubComp() 
    {
        return pubComp;
    }

    public void setPubDate(Date pubDate) 
    {
        this.pubDate = pubDate;
    }

    public Date getPubDate() 
    {
        return pubDate;
    }

    public void setbCount(Integer bCount) 
    {
        this.bCount = bCount;
    }

    public Integer getbCount() 
    {
        return bCount;
    }

    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bid", getBid())
            .append("bName", getbName())
            .append("author", getAuthor())
            .append("pubComp", getPubComp())
            .append("pubDate", getPubDate())
            .append("bCount", getbCount())
            .append("price", getPrice())
            .toString();
    }
}
